package cn.xn.hrms.domain.service;

import cn.xn.hrms.api.dto.res.LeaveDTO;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @author: ysz
 * @date: 2023/07/21
 **/
public interface LeaveService {

    void create(LeaveDTO leaveDTO);

    PageInfo<LeaveDTO> page(Integer page, Integer size, Integer leaver, Integer type, Integer status);

    void delete(List<Long> ids);

    void update(LeaveDTO leaveDTO);

    void approve(Long id, Integer status, String remark);

    void batchApprove(List<Long> ids, Integer status);

    List<LeaveDTO> listAll(Integer leaveStatus);
}
